<!DOCTYPE html>
<html>
<head>
    <title>HTML响应测试</title>
</head>
<body>
    <h1>HTML响应测试</h1>
    <button onclick="testHtmlResponse()">测试HTML响应</button>
    <div id="result"></div>

    <script>
        async function testHtmlResponse() {
            try {
                const response = await fetch('/html');
                const html = await response.text();
                document.getElementById('result').innerHTML = html;
            } catch (error) {
                document.getElementById('result').textContent = '错误: ' + error.message;
            }
        }
    </script>
</body>
</html> 